package com.atguigu01._this.exer2;

/**
 * ClassName: BankTest
 * Package: com.atguigu01._this.exer2
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/21 11:45
 * @Version 1.0
 */
public class BankTest {
    public static void main(String[] args) {
        Bank bank = new Bank();
        bank.addCustomer("坤", "爱");
        bank.addCustomer("哥", "鸡");
        bank.getCustomer(0).setAccount(new Account(8888));
        bank.getCustomer(0).getAccount().withdraw(80);
        System.out.println("余额为：" + bank.getCustomer(0).getAccount().getBalance());
    }
}
